import React from 'react';
import {
  AppRegistry,
  Text,
  View,
  Button,
  StyleSheet,
  Image
} from 'react-native';
import { TabNavigator } from 'react-navigation';
import ChatScreen from './ChatScreen'
export default  class MyHomeScreen extends React.Component {
  static navigationOptions=({navigation})=>{
    return ({
        title:'二级页面'
    })
  }
  render() {
    return (
      <Button
        title="返回"
        onPress={() => this.props.navigation.goBack()}
      />
    );
  }
}
